package memberrewards.dtos;

import java.util.Collection;

public class CatalogItemDTO {

	private String itemid;
	private String name;
	private String make;
	private String description;
	private int pointCost;//pointCost
	private String eligibleTiers;
	private Collection<String> tierList;
	
	public CatalogItemDTO(){
		super();
	}

	public String getItemid() {
		return itemid;
	}

	public void setItemid(String itemId) {
		this.itemid = itemId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMake() {
		return make;
	}

	public void setMake(String make) {
		this.make = make;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getPointCost() {
		return pointCost;
	}

	public void setPointCost(int cost) {
		this.pointCost = cost;
	}
	public String getEligibleTiers() {
		return eligibleTiers;
	}

	public void setEligibleTiers(String eligTiers) {
		this.eligibleTiers = eligTiers;
	}
	public Collection<String> getTierList() {
		return tierList;
	}
	
	public void setTierList(Collection<String> tierList) {
		this.tierList = tierList;
	}
	
	public String toString(){
		StringBuilder sb= new StringBuilder();
		sb.append("[Itemid :'"+getItemid()+"'")
		  .append(",Name :'"+getName()+"'")
		  .append(",Make :'"+getMake()+"'")
		  .append(",Description :'"+getDescription()+"'")
		  .append(",Cost :'"+getPointCost()+"'")
		  .append(",TierList :'"+(getTierList()!=null?getTierList().toString():"")+"']");
		return sb.toString();
	}
}
